package com.program.houai.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.program.houai.entity.CmallOrderGoodsEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @version v1.0
 * @ProjectName: EOrder-master
 * @ClassName: UserOrderVO
 * @Description: TODO(一句话描述该类的功能)
 * @Author: Topcheer
 * @Date: 2024/8/28 21:29
 */
@Getter
@Setter
@ApiModel(value ="用户订单",description = "用户订单")
public class UserOrderVO {

    @ApiModelProperty(name = "会员Id")
    private Integer memberId;

    @ApiModelProperty(name = "支付时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date paytime;

    @ApiModelProperty(name = "订单描述")
    private String txndesc;

    @ApiModelProperty(name = "订单价格(分)")
    private int price;

    @ApiModelProperty(name = "图片地址")
    private String url;

    @ApiModelProperty(name = "结算时间")
    private Date  royaltyTime;

    @ApiModelProperty(name = "订单Id")
    private int orderId;

    @ApiModelProperty(value = "购买数量")
    private int number;

/* ************    只需要展示这些字段************************* **/
    @ApiModelProperty(name = "订单号")
    private String orderNumber;

    @ApiModelProperty(name = "是否已结算 1是 0否")
    private int isRoyalty;

    @ApiModelProperty(name = "订单类型1其它订单 2商城订单")
    private int type ;

    @ApiModelProperty(name = "下单时间 或者结算时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(name = "商品数据")
    private List<MainUserOrderVO> detail = new ArrayList<>();
}
